package com.bhf.constant.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * @author pwq
 */
@Getter
public enum SexEnum {

    /**
     * 男
     */
    MAN(1, "男"),
    /**
     * 女
     */
    WOMAN(2, "女"),
    /**
     * 未知
     */
    UNKNOWN(3, "未知");

    SexEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @EnumValue
    private final int code;
    private final String desc;

    @Override
    public String toString() {
        return this.desc;
    }
}
